<?php

namespace app\models\admin\models;

use Yii;

/**
 * This is the model class for table "{{%admin_group}}".
 *
 * @property string $role_id
 * @property string $group_name
 * @property string $acl
 * @property string $status
 * @property string $last_modify
 */
class AdminGroup extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%admin_group}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['group_name', 'acl'], 'required'],
            [['acl', 'status'], 'string'],
            [['last_modify'], 'integer'],
            [['group_name'], 'string', 'max' => 50]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'role_id' => 'Role ID',
            'group_name' => 'Group Name',
            'acl' => 'Acl',
            'status' => 'Status',
            'last_modify' => 'Last Modify',
        ];
    }
}
